const processModel = {
	processtest1: {
		"searchValue": null,
		"createBy": "admin",
		"createTime": "2021-03-03 14:22:33",
		"updateBy": null,
		"updateTime": null,
		"remark": "管理员",
		"params": {},
		"processModelId": 1,
		"processModelKey":"processtest1",
		"modelTypeId": 103,
		"processModelName": "我要出差流程",
		"status": "0",
		"description":"我是我要出差流程",
		"delFlag": "0",
		"processModelType": {
			"searchValue": null,
			"createBy": null,
			"createTime": null,
			"updateBy": null,
			"updateTime": null,
			"remark": null,
			"params": {},
			"modelTypeId": 103,
			"parentId": null,
			"ancestors": null,
			"processModelTypeName": "订单中心",
			"orderNum": null,
			"status": null,
			"delFlag": null,
			"parentName": null,
			"children": []
		},
		"roles": [],
		"roleIds": null,
		"postIds": null,
		"admin": true
	},
	processtest2: {
		"searchValue": null,
		"createBy": "admin",
		"createTime": "2021-03-03 14:22:33",
		"updateBy": null,
		"updateTime": null,
		"remark": "测试员",
		"params": {},
		"processModelId": 2,
		"processModelKey":"processtest2",
		"modelTypeId": 105,
		"processModelName": "请假流程",
		"status": "1",
		"description":"我是请假流程",
		"delFlag": "0",
		"processModelType": {
			"searchValue": null,
			"createBy": null,
			"createTime": null,
			"updateBy": null,
			"updateTime": null,
			"remark": null,
			"params": {},
			"modelTypeId": 105,
			"parentId": null,
			"ancestors": null,
			"processModelTypeName": "演示流程",
			"orderNum": null,
			"status": null,
			"delFlag": null,
			"parentName": null,
			"children": []
		},
		"roles": [],
		"roleIds": null,
		"postIds": null,
		"admin": false
	}

}

export default [{
		url: '/process/model/list',
		type: 'get',
		response: config  => {
			return {
				total: 2,
				code: 200,
				msg: "查询成功",
				rows:[
					processModel['processtest1'],
					processModel['processtest2']
				]
			}
		}
	},
	{
			url: '/process/model',
			type: 'get',
			response: config  => {
				return {
					total: 1,
					code: 200,
					msg: "查询成功",
					data:processModel[config.query.processId],
						
				}
			}
		},
		{
				url: '/process/model',
				type: 'post',
				response: config  => {
					return {
						total: 1,
						code: 200,
						msg: "新增成功",
					}
				}
			},
		{
				url: '/process/model',
				type: 'put',
				response: config  => {
					return {
						total: 1,
						code: 200,
						msg: "修改成功",
					}
				}
			},
			{
					url: '/process/model',
					type: 'delete',
					response: config  => {
						return {
							total: 1,
							code: 200,
							msg: "删除成功",
						}
					}
				}
			

]
